package com.hnevc.foodserverapi.service.impl;


import com.hnevc.foodserverapi.dao.UsersMapper;

import com.hnevc.foodserverapi.pojo.Users;
import com.hnevc.foodserverapi.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Primary
public class UsersServiceImpl implements UsersService {
    @Autowired
    private UsersMapper usersMapper;

    public List<Users> login(Users users) {
        return usersMapper.login(users);
    }

    public int register(Users user) {
        return usersMapper.register(user);
    }
}
